package BeenChina.PM.Util;

import java.util.EnumSet;

public enum NavMenu {
	
	DaliyInfo(new NavMenuItem("1","日常情報")),
	CaseInfo(new NavMenuItem("2"," 案件情報")),
	OperationInfo(new NavMenuItem("3","運用情報")),
	ProductionInfo(new NavMenuItem("4","生産情報")),
	QualityInfo(new NavMenuItem("5","品質分析")),
	SystemInfo(new NavMenuItem("6","システム設定"));
	
	
	private NavMenuItem item;
	
	NavMenu(NavMenuItem item){
		this.item = item;
	 }

	public NavMenuItem getItem(){
		return this.item;
	 }
	
	public static String getNavMenuNameString()
	{
	   EnumSet<NavMenu> p = EnumSet.allOf(NavMenu.class);
	  		 
	   String result="" ;
	    for (NavMenu x : p) 
	    {				 
		  if (result.length()>0)
			 result += ",";
		 
		 result += x.getItem().getName();
		 }
			 
			 
		return	result;
	}
}
